﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace BLL
{
    public class TransactionHandler
    {
        // Handle to the Transaction DBAccess class
        TransactionDBAccess objTransaction = null;

        public TransactionHandler()
        {
            objTransaction = new TransactionDBAccess();
        }

        public bool UpdateStatusTransaction(string TransactionID, String CONNECTION_STRING)
        {
            return objTransaction.UpdateStatusTransaction(TransactionID, CONNECTION_STRING);
        }

        public DataTable GetAllTransactionTable(string AccountNumber, String CONNECTION_STRING)
        {
            return objTransaction.GetAllTransactionTable(AccountNumber, CONNECTION_STRING);
        }

        public DataTable GetTransactionTable(string AccountNumber, String CONNECTION_STRING)
        {
            return objTransaction.GetTransactionTable(AccountNumber, CONNECTION_STRING);
        }
        public List<Transaction> GetTransactionList(String CONNECTION_STRING)
        {
            return objTransaction.GetTransactionList(CONNECTION_STRING);
        }

        public Transaction GetTransactionDetails(int TransactionID, String CONNECTION_STRING)
        {
            return objTransaction.GetTransactionDetails(TransactionID, CONNECTION_STRING);
        }

        public bool DeleteTransaction(int TransactionID, String CONNECTION_STRING)
        {
            return objTransaction.DeleteTransaction(TransactionID, CONNECTION_STRING);
        }

        public bool UpdateTransaction(Transaction obj, String CONNECTION_STRING)
        {
            return objTransaction.UpdateTransaction(obj, CONNECTION_STRING);
        }

        public bool AddNewTransaction(Transaction obj, String CONNECTION_STRING)
        {
            return objTransaction.AddNewTransaction(obj, CONNECTION_STRING);
        }


    }
}
